#include<stdio.h>
#include<string.h>
#include<unistd.h>

#define NUM 101
#define STYLE '='


void process()
{
	char bar[NUM];
	memset(bar,'\0',sizeof(bar));

	int cnt = 0;
	while(cnt <= 100)
	{
		printf("[%-100s][%d%]\r",bar,cnt);
		fflush(stdout);
		bar[cnt++] = STYLE;
		usleep(20000);
	}
	printf("\n");
}



int main()
{
	process();
	return 0; 
}
